package com.hos.net.req.relation;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.hos.net.req.BaseReq;
import com.hos.net.res.MsgHint;

import java.util.List;

/**
 * Created by guom on 2018/10/31.
 */
public class RelationRemarkReq extends BaseReq {
    public String relationId;
    public String remarkName;
    public List<String> remarkImages;
    @JsonIgnore
    public String hint;

    // (false 检验失败)
    @JsonIgnore
    public boolean isVerifyParameter() {
        if (relationId == null || relationId.equals("")) {
            hint = new MsgHint("id不能为空").toJson();
            return false;
        }
        return true;
    }
}
